import { create } from "zustand";
// type mapState = {
// 	[key in string]: () => object | void;
// };

export const useAgvStore: any = create((set) => ({
	line: [],
	stationList: [],
	segmentList: [],
	areaList: [],
	agvInfo: [],
	agvPosition: [],
	setLine: (line: any) => set({ line }),
	setAgvInfo: (agvInfo: any) => set({ agvInfo }),
	setAgvPosition: (agvPosition: any) => set({ agvPosition }),
	setStationList: (stationList: any) => set({ stationList }),
	setSegmentList: (segmentList: any) => set({ segmentList }),
	setAreaList: (areaList: any) => set({ areaList }),
}));
